package com.weyoung.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.weyoung.admin.dto.req.FamilySortDTO;
import com.weyoung.admin.dto.req.GroupFamilyDTO;
import com.weyoung.common.model.entity.FamilyDO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
* @author 86182
* @description 针对表【family(家族信息表)】的数据库操作Mapper
* @createDate 2025-04-14 16:37:25
* @Entity com.weyoung.admin.domain.Family
*/
@Mapper
public interface FamilyMapper extends BaseMapper<FamilyDO> {

     Long getFamilyCount();
    //根据省份分组获取地区家族数量
    List<GroupFamilyDTO> selectList();

    List<FamilySortDTO> getFamilyRank();

    List<FamilyDO> finList();

    List<FamilyDO> selectByName(String name);

    void delete1(String id);
}




